<template>
		<view class="header">
			<view class="serch-wrapper acea-row row-middle">
				<view class="logo">
					<image :src="logoConfig" mode=""></image>
				</view>
				<view class="input acea-row row-middle fillet" hover-class="none"><text
						class="iconfont icon-xiazai5"></text>
					搜索商品</view>
			</view>
		</view>
</template>

<script>
	export default {
		props: {
			dataConfig: {
				type: Object,
				default: {}
			},
			activeName: {
				type: String,
				default: ''
			}
		},
		data() {
			return {
				logoConfig: this.dataConfig.imgUrl.url
			}
		},
		mounted(){
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.header {
		width: 100%;
		height: 100rpx;
		background: #fff;
		margin-bottom:14rpx;
		.serch-wrapper {
			padding: 20rpx 50rpx 0 53rpx;
			width: 100%;
			// background: red;
			display: flex;
			.logo {
				width: 118rpx;
				height: 42rpx;
				margin-right: 30rpx;
				line-height: 88rpx;
				image {
					width: 100%;
					height: 100%;
				}
			}

			.input {
				width: 500rpx;
				height: 58rpx;
				padding: 0 0 0 30rpx;
				background: rgba(247, 247, 247, 1);
				border: 1px solid rgba(241, 241, 241, 1);
				color: #BBBBBB;
				font-size: 28rpx;
				margin-bottom: 10rpx;
				margin-top:10rpx;
				line-height: 60rpx;
				.iconfont {
					margin-right: 20rpx;
				}
				.icon-xiazai5:before {
				    content: "\e67d";
				}
				// 没有logo，直接搜索框
				&.on {
					width: 100%;
				}

				// 设置圆角
				&.fillet {
					border-radius: 29rpx;
				}

				// 文本框文字居中
				&.row-center {
					padding: 0;
				}
			}
		}
	}
</style>
